package login

import (
	web_constants "app/app_src/framework/constant/web"
	login_controller "app/app_src/modules/login/controller"

	"github.com/gin-gonic/gin"
)

// 注册路由

func RegisterRoutes(router *gin.RouterGroup) {
	router.GET(web_constants.URL_LOGIN_PAGE, login_controller.Login)
	router.POST("/api/login/doLogin", login_controller.DoLogin)
	router.GET("/logout", login_controller.Logout)
}
